<HTML>
<HEAD>
<meta charset="UTF-8">
<title>NetworkState - core</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">core</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.core.network</a>&nbsp;/&nbsp;<a href="./index.html">NetworkState</a><br/>
<br/>
<h1>NetworkState</h1>
<code><span class="keyword">sealed</span> <span class="keyword">class </span><span class="identifier">NetworkState</span></code>
<p>Different states for any network request.</p>
<h3>Types</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-error/index.html">Error</a></h4>
</td>
<td>
<p>Error network state.</p>
<code><span class="keyword">data</span> <span class="keyword">class </span><span class="identifier">Error</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">NetworkState</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="-loading/index.html">Loading</a></h4>
</td>
<td>
<p>Loading network state.</p>
<code><span class="keyword">data</span> <span class="keyword">class </span><span class="identifier">Loading</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">NetworkState</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="-success/index.html">Success</a></h4>
</td>
<td>
<p>Success network state.</p>
<code><span class="keyword">data</span> <span class="keyword">class </span><span class="identifier">Success</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">NetworkState</span></a></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="is-error.html">isError</a></h4>
</td>
<td>
<p>Check if current network state is <a href="-error/index.html">Error</a>.</p>
<code><span class="keyword">fun </span><span class="identifier">isError</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="is-loading.html">isLoading</a></h4>
</td>
<td>
<p>Check if current network state is <a href="-loading/index.html">Loading</a>.</p>
<code><span class="keyword">fun </span><span class="identifier">isLoading</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="is-success.html">isSuccess</a></h4>
</td>
<td>
<p>Check if current network state is <a href="-success/index.html">Success</a>.</p>
<code><span class="keyword">fun </span><span class="identifier">isSuccess</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
